package com.weixin.text;

import java.sql.SQLException;
import java.util.Date;

import com.weixin.entity.Purchase;
import com.weixin.service.IPurchaseService;
import com.weixin.service.impl.PurchaseServiceImpl;

public class PurchaseText {
	public static void main(String[] args) throws SQLException {
		IPurchaseService service=new PurchaseServiceImpl();
		System.out.println(service.getInStorehouseTotal());
		System.out.println(service.getInStroehouse(5,2));
		
//		System.out.println(service.selectAll());
//		System.out.println(service.selectById(1));
//		System.out.println(service.get_all_about());
//		System.out.println(service.getAllAboutById(8));
//		Purchase purchase=new Purchase();
//		purchase.setGoods_id(1);
//		purchase.setNumber(5);
//		purchase.setPurchase_people_id(1);
//		purchase.setSupplier_id(1);
//		purchase.setPurchase_time(new Date());
//		purchase.setInspect(0);
//		purchase.setStorehouse_id(1);
//		purchase.setRemark("无");
//		System.out.println(service.insertPurchase(purchase));
		
//		Purchase purchase=service.selectById(1);
//		purchase.setNumber(15);
//		System.out.println(service.updatePurchase(purchase));
		
//		System.out.println(service.deleteById(2));
	}
}
